package top.kaoshanji.p2ch16a;

/**
 * 代码清单-p2ch16a-180页b：丈夫类
 * @author kaoshanji
 * ^_^
 * create time 2025/3/23 18:41
 */
public class Husband implements IHandler {

    // 妻子向丈夫请示
    @Override
    public void handleMessage(IWomen women) {
        System.out.println("妻子的请求是：" + women.getRequest());
        System.out.println("丈夫的答复是：同意");
    }

}
